//
//  UIScrollView+IGHeaderFooter.h
//  jingdongfang
//
//  Created by BOE on 2017/8/30.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIScrollView (IGHeaderFooter)

/// 设置下拉刷新头部控件
- (void)ig_setHeaderWithRefreshingBlock:(void(^)())refreshingBlock;
/// 开始下拉刷新
- (void)ig_beginHeaderRefreshing;
/// 结束下拉刷新
- (void)ig_endHeaderRefreshing;
/// 是否下拉刷新中
- (BOOL)ig_isHeaderRefreshing;

/// 设置上拉加载底部控件
- (void)ig_setFooterWithRefreshingBlock:(void(^)())refreshingBlock;
- (void)ig_setFooterWithNoMoreTitle:(NSString *)noMoreTitle
                    refreshingBlock:(void (^)())refreshingBlock;
/// 结束上拉加载
- (void)ig_endFooterRefreshing;
/// 结束上拉加载并设置无更多数据状态
- (void)ig_endFooterRefreshingWithNoMoreData;
/// 结束上拉加载并重置为闲置状态
- (void)ig_resetFooterToIdle;
/// 是否上拉加载中
- (BOOL)ig_isFooterRefreshing;
/// 设置上拉加载自动隐藏
- (void)ig_setFooterAutomaticallyHidden:(BOOL)automaticallyHidden;
/// 移除上拉加载视图
- (void)ig_removeFooterRefreshing;

@end
